package com.shengqiang.cloud.ups.api;

import com.shengqiang.cloud.ups.dao.modal.UpmsUser;
import com.shengqiang.cloud.ups.service.UpmsApiService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by Administrator on 2017/11/26.
 */
@RestController
@RequestMapping(value = "/userApi")
public class UpmsUserApi {

    @Autowired
    private UpmsApiService service;

    @ApiOperation(value = "查询所有的玩家列表",notes = "")
    @RequestMapping(value = "/users",method = RequestMethod.GET)
    public List<UpmsUser> queryUsers(){
        return service.queryUsers();
    }
}
